home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / HIScrollingPanels.idl < prev    next >
Text File  |  1996-05-01  |  3KB  |  105 lines

  1. /*
  2.      File:        HIScrollingPanels.idl
  3.  
  4.      Contains:    Interface to the scrolling panel class
  5.  
  6.      Version:    Technology:    System 8.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __HISCROLLINGPANELS_IDL__
  20. #define __HISCROLLINGPANELS_IDL__
  21.  
  22.  
  23. #include <HIPanels.idl>
  24. #include <HIControls.idl>
  25. #include <HIScrollingPanelTypes.idl>
  26.  
  27.  
  28. interface HIScrollingPanel : HIPanel
  29. {    
  30. // ======================================================
  31. // Public Methods
  32. // ======================================================
  33.  
  34.     // Programatic Initalizer
  35.     OSStatus InitScrollingPanel(in RefLabel                identifier, 
  36.                                 in HIWindow             window, 
  37.                                 in Rect                 boundingRect,
  38.                                 in HIPanel                scrolledPanel,
  39.                                 in boolean                visibleVerticalScrollBar,
  40.                                 in boolean                visibleHorizontalScrollBar,
  41.                                 in boolean                makeRoomForGrowBox);
  42.  
  43.     // Scrolled panel access
  44.     void SetScrolledPanel(in HIPanel scrolledPanel);
  45.     HIPanel GetScrolledPanel();
  46.     
  47.     // Scroling panels scrolled panels bounds
  48.     void GetScrolledPanelBoundingRect(in Rect scrolledPanelBoundingRect);
  49.     
  50.     // Vertical and horizontal scroll values
  51.     void SetVerticalScrollValue(in    SInt32    verticalValue);
  52.     SInt32 GetVerticalScrollValue();
  53.     
  54.     void SetHorizontalScrollValue(in    SInt32    horizontalValue);
  55.     SInt32 GetHorizontalScrollValue();
  56.     
  57.     // Increments
  58.     void SetVerticalScrollIncrement(in UInt32    increment);
  59.     UInt32 GetVerticalScrollIncrement();
  60.             
  61.     void SetHorizontalScrollIncrement(in UInt32    increment);
  62.     UInt32 GetHorizontalScrollIncrement();
  63.     
  64.     // Scroll bar visibility
  65.     void ShowVerticalScrollBar();
  66.     void HideVerticalScrollBar();
  67.     boolean IsVerticalScrollBarVisible();
  68.     
  69.     void ShowHorizontalScrollBar();
  70.     void HideHorizontalScrollBar();
  71.     boolean IsHorizontalScrollBarVisible();
  72.             
  73. // ======================================================
  74. // Protected Utility Methods
  75. // ======================================================
  76.     implementation {
  77.         
  78.         passthru C_h    =    "#include <HIScrollingPanelTypes.h>";
  79.         
  80.         passthru C_xh    =    "#include <HIScrollingPanelTypes.h>";
  81.         
  82.         releaseorder:        InitScrollingPanel,
  83.                             SetScrolledPanel,
  84.                             GetScrolledPanel,
  85.                             GetScrolledPanelBoundingRect,
  86.                             SetVerticalScrollValue,
  87.                             GetVerticalScrollValue,
  88.                             SetHorizontalScrollValue,
  89.                             GetHorizontalScrollValue,
  90.                             SetVerticalScrollIncrement,
  91.                             GetScrollBarElementSize,
  92.                             GetVerticalScrollIncrement,
  93.                             SetHorizontalScrollIncrement,
  94.                             GetHorizontalScrollIncrement,
  95.                             ShowVerticalScrollBar,
  96.                             HideVerticalScrollBar,
  97.                             IsVerticalScrollBarVisible,
  98.                             ShowHorizontalScrollBar,
  99.                             HideHorizontalScrollBar,
  100.                             IsHorizontalScrollBarVisible;
  101.     };        
  102. };
  103.  
  104. #endif
  105.